import Vue from "vue"

import vuex from "vuex"

//引入模块化的store

import product from "./product"
import cart from "./cart"
import comment from "./comment"

Vue.use(vuex)


export default new vuex.Store({
  state: {},
  mutations: {},
  actions: {},
  getters: {},
  modules: {
    product,
    cart,
    comment
  },
  plugins: []
})